home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_01_02
/
1n02055a
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1990-07-08
|
266 b
|
16 lines
/*
** Listing 2 - Convert Unix-style pathnames to DOS-style
*/
#include <stddef.h>
#include <string.h>
char *unix2dos(char *path)
{
char *p;
while (NULL != (p = strchr(path, '/')))
*p = '\\';
return path;
}